/*
 * Copyright (c) 2017,安徽皖通科技股份有限公司 All rights reserved.
 */
package com.wttech.dzzf.process.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 客户信息相关常量
 * 
 * @date 2017年9月27日
 * @author ta0452
 */
public class UserInfoStaticValue {
    
    public final static class RegiseredType {
        
        /**
         * 线上
         */
        public static final int ONLINE = 1;
        
        /**
         * 线下
         */
        public static final int OFFLINE = 2;
    }
    
    public final static class UserStatus {
        
        /**
         * 在用
         */
        public static final int INUSE = 1;
        
        /**
         * 注销
         */
        public static final int LOGOUT = 2;
    }
    
    public final static class ApplyStatus {
        
        /**
         * 申请
         */
        public static final int APPLY = 0;
        
        /**
         * 已确认
         */
        public static final int CONFIRM = 1;
    }
    
    /**
     * 操作类型
     */
    public final static class OptType {
        
        /**
         * 新增
         */
        public static final int ADD = 1;
        
        /**
         * 变更
         */
        public static final int UPDATE = 2;
    }
    
    /**
     * 数据库存储证件类型
     * 
     * @date 2017年10月13日
     * @author wyd
     */
    public final static class CertifiType {
        
        /**
         * 身份证
         */
        public static final int IDCARD = 0;
        
        /**
         * 军官证
         */
        public static final int OFFICER = 1;
        
        /**
         * 护照
         */
        public static final int PASSPORT = 2;
        
        /**
         * 入境证 限港澳居民
         */
        public static final int GA_PERMIT = 3;
        
        /**
         * 临时身份证
         */
        public static final int TEMP_IDCARD = 4;
        
        /**
         * 武警警察身份证
         */
        public static final int ARMED_POLICE = 5;
        
        /**
         * 台湾居民来往大陆通行证
         */
        public static final int T_PERMIT = 6;
        
        /**
         * 组织机构代码证
         */
        public static final int ORGANIZATION = 101;
        
        /**
         * 统一社会信用代码证书
         */
        public static final int SOCIAL_CREDIT = 102;
        
        /**
         * 营业执照
         */
        public static final int BUSINESS_LICENSE = 103;
        
        /**
         * 事业单位法人证书
         */
        public static final int PUBLIC_INSTITUTION = 104;
        
        /**
         * 社会团体法人登记证书
         */
        public static final int SOCIAL_ORGANIZATION = 105;
        
        /**
         * 律师事务所执业许可证
         */
        public static final int LAWFIRM_ORGANIZATION = 106;
        
    }
    
    /**
     * 部中心规定规范
     * 
     * @date 2017年10月13日
     * @author wyd
     */
    public final static class UserIdType {
        
        /**
         * 身份证（含临时身份证）
         */
        public static final int IDCARD = 101;
        
        /**
         * 护照（限外籍人士）
         */
        public static final int PASSPORT = 102;
        
        /**
         * 港澳居民来往内地通行证
         */
        public static final int GA_PERMIT = 103;
        
        /**
         * 台湾居民来往大陆通行证
         */
        public static final int T_PERMIT = 104;
        
        /**
         * 军官证
         */
        public static final int OFFICER = 105;
        
        /**
         * 武警警察身份证
         */
        public static final int ARMED_POLICE = 106;
        
        /**
         * 统一社会信用代码证书
         */
        public static final int SOCIAL_CREDIT = 201;
        
        /**
         * 组织机构代码证
         */
        public static final int ORGANIZATION = 202;
        
        /**
         * 营业执照
         */
        public static final int BUSINESS_LICENSE = 203;
        
        /**
         * 事业单位法人证书
         */
        public static final int PUBLIC_INSTITUTION = 204;
        
        /**
         * 社会团体法人登记证书
         */
        public static final int SOCIAL_ORGANIZATION = 205;
        
        /**
         * 律师事务所执业许可证
         */
        public static final int LAWFIRM_ORGANIZATION = 206;
        
    }
    
    public static Map<Integer, Object> certifiTypeMap = new HashMap<Integer, Object>();
    static {
        certifiTypeMap.put(CertifiType.IDCARD, "身份证");
        certifiTypeMap.put(CertifiType.PASSPORT, "护照（限外籍人士）");
        certifiTypeMap.put(CertifiType.GA_PERMIT, "港澳居民来往内地通行证");
        certifiTypeMap.put(CertifiType.T_PERMIT, "台湾居民来往大陆通行证");
        certifiTypeMap.put(CertifiType.TEMP_IDCARD, "临时身份证");
        certifiTypeMap.put(CertifiType.OFFICER, "军官证");
        certifiTypeMap.put(CertifiType.ARMED_POLICE, "武警警察身份证");
        certifiTypeMap.put(CertifiType.SOCIAL_CREDIT, "统一社会信用代码证书");
        certifiTypeMap.put(CertifiType.ORGANIZATION, "组织机构代码证");
        certifiTypeMap.put(CertifiType.BUSINESS_LICENSE, "营业执照");
        certifiTypeMap.put(CertifiType.PUBLIC_INSTITUTION, "事业单位法人证书");
        certifiTypeMap.put(CertifiType.SOCIAL_ORGANIZATION, "社会团体法人登记证书");
        certifiTypeMap.put(CertifiType.LAWFIRM_ORGANIZATION, "律师事务所执业许可证");
    }
    
    public static Map<Integer, Object> userIdTypeMap = new HashMap<Integer, Object>();
    static {
        userIdTypeMap.put(UserIdType.IDCARD, "身份证（含临时身份证）");
        userIdTypeMap.put(UserIdType.PASSPORT, "护照（限外籍人士）");
        userIdTypeMap.put(UserIdType.GA_PERMIT, "港澳居民来往内地通行证");
        userIdTypeMap.put(UserIdType.T_PERMIT, "台湾居民来往大陆通行证");
        userIdTypeMap.put(UserIdType.OFFICER, "军官证");
        userIdTypeMap.put(UserIdType.ARMED_POLICE, "武警警察身份证");
        userIdTypeMap.put(UserIdType.SOCIAL_CREDIT, "统一社会信用代码证书");
        userIdTypeMap.put(UserIdType.ORGANIZATION, "组织机构代码证");
        userIdTypeMap.put(UserIdType.BUSINESS_LICENSE, "营业执照");
        userIdTypeMap.put(UserIdType.PUBLIC_INSTITUTION, "事业单位法人证书");
        userIdTypeMap.put(UserIdType.SOCIAL_ORGANIZATION, "社会团体法人登记证书");
        userIdTypeMap.put(UserIdType.LAWFIRM_ORGANIZATION, "律师事务所执业许可证");
    }
    
    /**
     * 电子支付证件类型转部中心类型
     */
    public static Map<Integer, Integer> CTYPE_TO_UTYPE = new HashMap<Integer, Integer>();
    
    static {
        CTYPE_TO_UTYPE.put(CertifiType.IDCARD, UserIdType.IDCARD);
        CTYPE_TO_UTYPE.put(CertifiType.OFFICER, UserIdType.OFFICER);
        CTYPE_TO_UTYPE.put(CertifiType.PASSPORT, UserIdType.PASSPORT);
        CTYPE_TO_UTYPE.put(CertifiType.GA_PERMIT, UserIdType.GA_PERMIT);
        CTYPE_TO_UTYPE.put(CertifiType.TEMP_IDCARD, UserIdType.IDCARD);
        CTYPE_TO_UTYPE.put(CertifiType.T_PERMIT, UserIdType.T_PERMIT);
        CTYPE_TO_UTYPE.put(CertifiType.ARMED_POLICE, UserIdType.ARMED_POLICE);
        CTYPE_TO_UTYPE.put(CertifiType.ORGANIZATION, UserIdType.ORGANIZATION);
        CTYPE_TO_UTYPE.put(CertifiType.SOCIAL_CREDIT, UserIdType.SOCIAL_CREDIT);
        CTYPE_TO_UTYPE.put(CertifiType.BUSINESS_LICENSE, UserIdType.BUSINESS_LICENSE);
        CTYPE_TO_UTYPE.put(CertifiType.PUBLIC_INSTITUTION, UserIdType.PUBLIC_INSTITUTION);
        CTYPE_TO_UTYPE.put(CertifiType.SOCIAL_ORGANIZATION, UserIdType.SOCIAL_ORGANIZATION);
        CTYPE_TO_UTYPE.put(CertifiType.LAWFIRM_ORGANIZATION, UserIdType.LAWFIRM_ORGANIZATION);
    }
    
    /**
     * 部中心类型转电子支付证件类型
     */
    public static Map<Integer, Integer> UTYPE_TO_CTYPE = new HashMap<Integer, Integer>();
    
    static {
        UTYPE_TO_CTYPE.put(UserIdType.IDCARD, CertifiType.IDCARD);
        UTYPE_TO_CTYPE.put(UserIdType.OFFICER, CertifiType.OFFICER);
        UTYPE_TO_CTYPE.put(UserIdType.PASSPORT, CertifiType.PASSPORT);
        UTYPE_TO_CTYPE.put(UserIdType.T_PERMIT, CertifiType.T_PERMIT);
        //UTYPE_TO_CTYPE.put(UserIdType.IDCARD, CertifiType.TEMP_IDCARD);
        UTYPE_TO_CTYPE.put(UserIdType.GA_PERMIT, CertifiType.GA_PERMIT);
        UTYPE_TO_CTYPE.put(UserIdType.ARMED_POLICE, CertifiType.ARMED_POLICE);
        UTYPE_TO_CTYPE.put(UserIdType.ORGANIZATION, CertifiType.ORGANIZATION);
        UTYPE_TO_CTYPE.put(UserIdType.SOCIAL_CREDIT, CertifiType.SOCIAL_CREDIT);
        UTYPE_TO_CTYPE.put(UserIdType.BUSINESS_LICENSE, CertifiType.BUSINESS_LICENSE);
        UTYPE_TO_CTYPE.put(UserIdType.PUBLIC_INSTITUTION, CertifiType.PUBLIC_INSTITUTION);
        UTYPE_TO_CTYPE.put(UserIdType.SOCIAL_ORGANIZATION, CertifiType.SOCIAL_ORGANIZATION);
        UTYPE_TO_CTYPE.put(UserIdType.LAWFIRM_ORGANIZATION, CertifiType.LAWFIRM_ORGANIZATION);
    }
    
    public final static class OwnerType {
        
        /**
         * 个人
         */
        public static final int PERSON = 0;
        
        /**
         * 单位
         */
        public static final int COMPANY = 1;
    }
    
    public static Map<Integer, Object> ownerTypeMap = new HashMap<Integer, Object>();
    
    static {
        ownerTypeMap.put(OwnerType.PERSON, "个人");
        ownerTypeMap.put(OwnerType.COMPANY, "单位");
    }
    
    public final static class UserType {
        
        /**
         * 个人
         */
        public static final int PERSON = 1;
        
        /**
         * 单位
         */
        public static final int COMPANY = 2;
    }
    
    public static Map<Integer, Integer> OwnerType_TO_UserType = new HashMap<Integer, Integer>();
    
    static {
        OwnerType_TO_UserType.put(OwnerType.PERSON, UserType.PERSON);
        OwnerType_TO_UserType.put(OwnerType.COMPANY, UserType.COMPANY);
    }
    
    public static Map<Integer, Integer> UserType_TO_OwnerType = new HashMap<Integer, Integer>();
    
    static {
        UserType_TO_OwnerType.put(UserType.PERSON, OwnerType.PERSON);
        UserType_TO_OwnerType.put(UserType.COMPANY, OwnerType.COMPANY);
    }
    
    public final static class checkResult {
        
        /**
         * 成功
         */
        public static final String SUCCESS = "right";
    }
    
}
